package com.vehicle.app.entity.demo;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author shouhan
 * @since 2019-01-07
 */
@TableName("demo")
public class Demo extends Model<Demo> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键自增
     */
    private Integer id;
    /**
     * 名字
     */
    private String name;
    /**
     * 年龄
     */
    private Integer age;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 最后一次修改时间
     */
    @TableField("last_update_time")
    private Date lastUpdateTime;
    /**
     * 是否删除 0.正常  1.删除
     */
    @TableField("is_del")
    private Long isDel;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    public Long getIsDel() {
        return isDel;
    }

    public void setIsDel(Long isDel) {
        this.isDel = isDel;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Demo{" +
        ", id=" + id +
        ", name=" + name +
        ", age=" + age +
        ", createTime=" + createTime +
        ", lastUpdateTime=" + lastUpdateTime +
        ", isDel=" + isDel +
        "}";
    }
}
